class Student:
    name = None
    age = None
    address = None

    def eat(self,type):
        print(self.name)
        print(f"吃饭{type}")


stu1 = Student()
stu1.name = "张三"
stu1.eat("想吃鸡公煲")
print(stu1.name, type(stu1))
